using System;
using System.Collections.Generic;
using UMC.Data;
namespace UMC.WorkFlow.Entities
{
public partial class TaskSubscribe
{
readonly static Action<TaskSubscribe,object>[] _SetValues=new Action<TaskSubscribe,object>[]{(r,t)=>r.Alias=Reflection.ParseObject(t, r.Alias),(r,t)=>r.ShapeId=Reflection.ParseObject(t, r.ShapeId),(r,t)=>r.ShapeName=Reflection.ParseObject(t, r.ShapeName),(r,t)=>r.SubscribeEvent=Reflection.ParseObject(t, r.SubscribeEvent),(r,t)=>r.TaskId=Reflection.ParseObject(t, r.TaskId),(r,t)=>r.Username=Reflection.ParseObject(t, r.Username)};
readonly static string[] _Columns=new string[]{"Alias","ShapeId","ShapeName","SubscribeEvent","TaskId","Username"};
protected override void SetValue(string name, object obv){
var index = Utility.Search(_Columns,name, StringComparer.CurrentCultureIgnoreCase);
if (index > -1)_SetValues[index](this, obv);
}
protected override void GetValues(Action<String, object> action){
AppendValue(action,"Alias", this.Alias);
AppendValue(action,"ShapeId", this.ShapeId);
AppendValue(action,"ShapeName", this.ShapeName);
AppendValue(action,"SubscribeEvent", this.SubscribeEvent);
AppendValue(action,"TaskId", this.TaskId);
AppendValue(action,"Username", this.Username);
}

 protected override RecordColumn[] GetColumns(){
 var cols = new RecordColumn[6];
cols[0]= RecordColumn.Column("Alias",this.Alias);
cols[1]= RecordColumn.Column("ShapeId",this.ShapeId);
cols[2]= RecordColumn.Column("ShapeName",this.ShapeName);
cols[3]= RecordColumn.Column("SubscribeEvent",this.SubscribeEvent);
cols[4]= RecordColumn.Column("TaskId",this.TaskId);
cols[5]= RecordColumn.Column("Username",this.Username);
return cols;
}

}
}

